Skip to content

SubjectBase class

Defined in

Namespace: System.Reactive.Subjects Assembly: System.Reactive.dll Full name: System.Reactive.Subjects.SubjectBase<T> Modifiers: public abstract

Summary

        Base class for objects that are both an observable sequence as well as an observer.
        

Applies to

netstandard2.0

Class hierarchy
classDiagram
class SubjectBase~T~
class ISubject~T~ {
    <>
}
ISubject~T~ <|.. SubjectBase~T~
class ISubject~T, T~ {
    <>
}
ISubject~T, T~ <|.. SubjectBase~T~
class IObserver~T~ {
    <>
}
IObserver~T~ <|.. SubjectBase~T~
class IObservable~T~ {
    <>
}
IObservable~T~ <|.. SubjectBase~T~
class IDisposable {
    <>
}
IDisposable <|.. SubjectBase~T~

Implements: ISubject, ISubject, IObserver, IObservable, IDisposable

Constructors

NameSummary
.ctor

Properties

NameSummary
HasObserversIndicates whether the subject has observers subscribed to it.
IsDisposedIndicates whether the subject has been disposed.

Methods

NameSummary
DisposeReleases all resources used by the current instance of the subject and unsubscribes all observers.
OnCompletedNotifies all subscribed observers about the end of the sequence.
OnErrorNotifies all subscribed observers about the specified exception.
OnNextNotifies all subscribed observers about the arrival of the specified element in the sequence.
SubscribeSubscribes an observer to the subject.
Inherited members